package com.jo.test;

import com.jo.anotation.MyComponent;
import org.springframework.stereotype.Component;

/**
 * Created by Jo on 2017/8/22.
 */
@Component
@MyComponent
public class User {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public User(String name) {
        this.name = name;
    }

    public User() {
        name = "spring ioc";
    }
}
